<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .imgList {
            width: 1000px;
            border-radius: 10px;
            margin: 40px auto;
            background-color: #7dddc2;
            /*清除浮动的干扰*/
            overflow: hidden;
        }

        .imgList .item {
            width: 200px;
            height: 200px;
            float: left;
            padding: 4px;
            /*内容溢出隐藏*/
            overflow: hidden;
        }

        .imgList .item img {
            width: 100%;
        }

        .imgList .item img:hover {
            transform: scale(1.3);
            transition: all 0.1s;
        }
    </style>
</head>
<body>
<div class="imgList">
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>

    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>
    <div class="item">
        <img src="./img/img1.webp" alt="">
    </div>

</div>

</body>
</html>
